package com.czmh.etc.onlinepubsys.request.cmg;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Copyright (C), 2017-2021
 *
 * @Author: Chenzj
 * Date: 2021/4/1 13:30
 * FileName: QueryIssueActiveRequest
 * Description:
 */
@ApiModel("招商局-卡签发行状态查询-对接请求对象\n" +
        "第三方系统发行卡签之前，需要该车辆有办理的业务订单，先写OBU后写卡，\n" +
        "写OBU应按车辆信息、系统信息的顺序写：\n" +
        "若写某个文件失败，应该重新写一遍；例如写卡状态是1、写车辆信息成功则第三方应该重新从写车辆信\n" +
        "息文件开始重写;\n" +
        "只有当所有文件都写成功后，才调用写OBU成功确认接口；\n" +
        "写卡应按0015、0016的顺序写：\n" +
        "若写某个文件失败，应该重新写一遍；例如写卡状态是1、写0016文件成功则第三方应该重新从0016文\n" +
        "件开始重写;\n" +
        "只有当所有文件都写成功后，才调用写卡成功确认接口；\n" +
        "备注：如果卡/OBU反复写都是失败的话，则怀疑是卡/OBU质量问题，可以通过补换卡/OBU重新发行。")
@Data
public class QueryIssueActiveRequest {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @JSONField(serialize = false)
    private String userId; //用户ID

    @ApiModelProperty("订单id")
    @JSONField(serialize = false)
    private String orderId; //订单id

    @ApiModelProperty(notes = "业务类型 1、新办卡签 2、换卡换签 3、重写卡签 4、脱落激活", required = true)
    private Integer bussType;

    @ApiModelProperty(notes = "时间戳", hidden = true)
    private Long time;

    @ApiModelProperty(notes = "客户端唯一码，accessNo+随机编", hidden = true)
    private String clientKey;

    @ApiModelProperty(notes = "车牌号", required = true)
    private String vehiclePlate;

    @ApiModelProperty(notes = "车牌颜色", required = true)
    private Integer vehiclePlateColor;
}
